package com.cskaoyan.javase._1extends._8hidden;


/**
 * 静态成员变量
 *
 * @since 10:49
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo4 {
    public static void main(String[] args) {
        System.out.println(Person.num);
        Student.num = 200;
        System.out.println(Person.num);
        System.out.println(Student.num);
    }
}

class Person {
    static int num = 10;
}

class Student extends Person {
    static int num = 20;
}